package priv.utrix.micro.service.impl;

import lombok.RequiredArgsConstructor;
import org.apache.dubbo.config.annotation.DubboService;
import priv.utrix.micro.dto.SysUserDTO;
import priv.utrix.micro.dubbo.SysUserDubbo;
import priv.utrix.micro.service.SysUserService;

/**
 * @author utrix
 * @date 2020/12/14
 */
@DubboService
@RequiredArgsConstructor
public class SysUserDubboImpl implements SysUserDubbo {

    final SysUserService userService;

    @Override
    public SysUserDTO getByUsername(String username) {
        return userService.getByUsername(username);
    }
}
